#include "../qzip.h"
#include <QString>

int main(int argc, char *argv[])
{
    if(argc<4){
        qWarning("Usage: app -c[-x] zipFileName zipDirName");
        return 0;
    }
    QZip zip(argv[2],argv[3]);
    QString option1("-x");
    QString option2("-c");
    if(option1==argv[1]){
        zip.unzip();
    }else if(option2==argv[1]){
       zip.zip();
   }else{
       qWarning("Usage: app -c[-x] zipFileName zipDirName");
   }
    return 0;
}
